package org.eiahe.hr.employeeRelation.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.ehe.common.mybatis.core.domain.BaseEntity;

import java.util.Date;

/**
 * 奖惩申请表
 *
 * @author zhangnn
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("hr_reward_punishment")
public class RewardPunishmentApplication extends BaseEntity {

    /**
     * 申请ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long applicationId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 员工ID
     */
    private Long employeeId;

    /**
     * 工号
     */
    private String employeeNo;

    /**
     * 奖惩类型
     */
    private String rewardPunishmentType;

    /**
     * 事由
     */
    private String reason;

    /**
     * 证据附件
     */
    private String evidenceAttachment;

    /**
     * 申请时间
     */
    private Date applicationTime;

    /**
     * 审批人ID
     */
    private Long approverId;

    /**
     * 审批时间
     */
    private Date approvalTime;

    /**
     * 审批意见
     */
    private String approvalRemark;

    /**
     * 记录时间
     */
    private Date recordTime;

    /**
     * 处理结果
     */
    private String processingResult;

    /**
     * 审批状态（0待审批 1已通过 2已驳回 3已撤回）
     */
    private String approvalStatus;

    /**
     * 影响（如绩效加分/扣薪）
     */
    private String impact;
}
